<div class="global_header">
	<div class="global_header_content ">
		<div class="global_logo"><a href="{config[weburl]}">{config[webname]}<small>快乐源自分享！</small></a></div>
		<div class="global_right">
			<div class="global_menu_link global_search">
				<form action="{config[weburl]}/search.php">
					<input class="global_searchkey" name="skey" maxlength="50">
					<input type="submit" name="sbtn" class="global_searchbtn hover" value="搜索">
					<br style="clear:both">
				</form>
			</div>
			<div class="global_menu_link"><a href="{config[weburl]}/explore.php" title="看看最近大家都在分享什么">发现</a></div>
			<!-- if($_SESSION[uid]) --><div class="global_menu_link"><a href="{config[weburl]}/publish.php" title="发布一条资源">发布</a></div><!-- end -->
			<!-- if($_SESSION[uid] && $_SESSION[name]) -->
			<div class="global_menu_link"><a href="my.php" title="进入我的首页">我的首页</a></div>
			<div class="global_menu_link" style="position:relative" onmouseout="javascript:$('.global_account').hide();" onmouseover="javascript:$('.global_account').show();">
				<a href="javascript:void(0)">帐号<span class="arr_d"><em class="em1"></em><em class="em2"></em><em class="em3"></em></span></a>
				<div class="global_account">
					<ul>
						<li><a href="{config[weburl]}/account.php">设置</a></li>
						<li><a href="{config[weburl]}/logout.php?refer={run:}echo urlencode($_SERVER[REQUEST_URI]);{/run}">退出</a></li>
					</ul>
				</div>
			</div>
			<!-- else -->
			<div class="global_menu_link global_login"><a class="global_header_item" href="{config[weburl]}/login.php?refer={run:}echo urlencode($_SERVER[REQUEST_URI]);{/run}">登录</a></div>
			<div class="global_menu_link global_reg"><a class="global_header_item" href="{config[weburl]}/register.php?refer={run:}echo urlencode($_SERVER[REQUEST_URI]);{/run}">注册</a></div>
			<!-- end -->
		</div>
		<br style="clear:both">
	</div>
</div>